package com.zh.core;

import java.util.SortedSet;
import java.util.TreeSet;

/**
 * Created by zhaohui on 2019/9/6
 * Description:
 */
public class TreeSetTest {

    public static void main(String[] args) {
        SortedSet<String> words = new TreeSet<String>();
        words.add("ni");
        words.add("hao");
        words.add("world");
        for (String word : words) {
            System.out.println(word);
        }
    }

}
